package com.ruibang.glass.quality.constant;

/**
 * @author 宋锦康
 */

public enum QualityErrorCode {

    ERROR(100040001, "系统异常,请联系管理"),
    DEFECT_IS_EXIST(100040002, "不可配置重复缺陷"),
    CHECK_CHECK_MACHINE_IS_EXIST(100040003, "当前检查机已被配置,不可重复配置"),
    SIZE_ERROR(100040004, "最小尺寸不可大于最大尺寸"),
    LAYER_DEPTH_ERROR(100040005, "最小层深不可大于最大层深"),
    DEFECT_TASK_IS_RUN(100040006, "正在同步数据6请稍后后重试"),
    LSL_CANNOT_GEE_USL(100040007, "规格下限不可 >= 规格上限"),
    DATA_SIZE_SMALL(100040008, "要求：样本数据量 > 1"),
    GROUP_SIZE_SMALL(100040009, "要求：23 <= 子组大小 >= 1"),
    INVALID_PARAM(100040010, "无效参数"),
    BUSINESS_MENU_IS_EMPTY(100040011, "业务菜单ID不能为空"),
    UNKNOWN_GLASS_GRADE(100040012, "未知玻璃种类，请联系管理员"),
    NO_DATA_EXPORT(100040013, "没有可以导出的数!"),
    PARAM_ERROR(1000410014, "参数错误"),
    UNKNOWN_DIMENSION_TYPE(100040015, "未知维度类型,请重新选择查询维度！"),
    NOT_FIND_DEPT_MANAGER(100040016, "未找到申请部门经理，请先设置部门经理"),
    SEMI_IMPORT_FILE_ERROR(100040017, "导入文件异常，请重试"),
    FILE_IS_NOT_EXCEL(100040018, "请上传一个正确EXCEL文件！"),
    WRITE_PRODUCTION_LINE(100040019, "请在EXCEL写入正确的产线SY02、SL01"),
    PLEASE_CONFIGURE_FRE_RULE(100040020, "请配置面复检统计规则！"),;
    private int code;
    private String msg;

    QualityErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }
}
